package com.moonshineproject.plugin.project.event
{
	import com.moonshineproject.plugin.project.vo.FileWrapper;
	
	import flash.events.Event;
	import flash.filesystem.File;

	public class RefreshTreeEvent extends Event
	{
		public static const EVENT_REFRESH:String = "refreshEvent";
		
		public var dir:File;
		
		public function RefreshTreeEvent(directoryOrFile:File)
		{
			if (!directoryOrFile.isDirectory) 
				directoryOrFile = directoryOrFile.parent;
			
			this.dir = directoryOrFile;
			super(EVENT_REFRESH, false, false);
		}
		
	}
}